import 'package:flutter/material.dart';
import 'package:flutter_html/flutter_html.dart';

/*
*  Html组件
*  Flutter本身不支持加载Html
*  三方组件路径 ：
*       https://github.com/Sub6Resources/flutter_html
* Html(
            data:
                "<img width=\"100%\" height=\"auto\" alt=\"\" src=\"https://images.baixingliangfan.cn/shopGoodsDetailImg/20180713/20180713181348_2470.jpg\" /><img width=\"100%\" height=\"auto\" alt=\"\" src=\"https://images.baixingliangfan.cn/shopGoodsDetailImg/20180713/20180713181349_5397.jpg\" /><img width=\"100%\" height=\"auto\" alt=\"\" src=\"https://images.baixingliangfan.cn/shopGoodsDetailImg/20180713/20180713181350_7963.jpg\" /><img width=\"100%\" height=\"auto\" alt=\"\" src=\"https://images.baixingliangfan.cn/shopGoodsDetailImg/20180713/20180713181350_1658.jpg\" />")

* */
class HtmlWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: Text("加载Html"),
        ),
      body: Html(
          data: "<span>你是谁你谁刷</span>")
            );
  }



}
